//
//  HQCollectionViewCell.m
//  HaoZhouDao
//
//  Created by quan on 15/11/16.
//  Copyright © 2015年 quan. All rights reserved.
//

#import "HQCollectionViewCell.h"
#import "HQZhou.h"

@interface HQCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *icon;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;


@end

@implementation HQCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self =  [super initWithFrame:frame]) {
        //加载些东西
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super initWithCoder:aDecoder]) {
        //加载些自定义的东西

    }
    return self;
}
         


- (void)setZhou:(HQZhou *)zhou{
    _zhou = zhou;
//    NSString *path = [NSString stringWithFormat:"]
    NSString *imagePath = [[NSBundle mainBundle] pathForResource:zhou.photo ofType:nil];
    self.icon.image = [UIImage imageWithContentsOfFile:imagePath];
    self.nameLabel.text = zhou.name;
}



@end
